package net.xiduth.game.player.dialogues.impl;

import net.xiduth.game.player.dialogues.Dialogue;

/**
 * 
 * @author Jae <jae@xiduth.com>
 * 
 * @since <Oct 19, 2013>
 *
 */
public class ClaimRewards extends Dialogue {

	@Override
	public void start() {
		stage = 1;
		if (stage == 1) {
			sendOptionsDialogue("What rewards would like to claim?",
					"PvM rewards.",
					"Skilling rewards.",
					"Vote rewards.");
			stage = 1;
	}
	}

	public void run(int interfaceId, int componentId) {
		if (stage == 1) {
			if (componentId == OPTION_1) {
				player.getDialogueManager().startDialogue("PvMRewards");
			}
			if (componentId == OPTION_2) {	
				player.getDialogueManager().startDialogue("SkillsRewards");	
			}
			if (componentId == OPTION_3) {
				player.getInterfaceManager().sendNewVote();
			}
		}
		if (stage == 2) {
			end();
		}
	}
	
	@Override
	public void finish() {

	}

}